package com.xoa.service.workflow.FlowAssign;

import com.xoa.model.fixAssets.EduFixAssets;
import com.xoa.model.workflow.FlowAssign;
import com.xoa.model.workflow.FlowAssignWithBLOBs;
import com.xoa.model.workflow.FlowProcess;
import com.xoa.util.ToJson;

import javax.servlet.http.HttpServletRequest;

public interface FlowAssignService {

    ToJson<FlowProcess> selectFeedBack(Integer flowId, Integer prcsId);

    ToJson<FlowAssign> insertAssign(FlowAssignWithBLOBs flowAssign);

    public ToJson<FlowAssign> query(FlowAssign flowAssign, HttpServletRequest request);

    ToJson<FlowAssignWithBLOBs> updateFlowAssign(String assignId,
                                                 String fdAttachmentID,
                                                 String fdAttachmentName,
                                                 String taskFeedback,
                                                 Integer id,
                                                 String smsType,
                                                 String smsContent,
                                                 HttpServletRequest request,
                                                 Integer runId,
                                                 Integer flowId,
                                                 Integer prcsId,
                                                 Integer currentPrcsId,
                                                 String runName,
                                                 String tableName,
                                                 String tabId);

    ToJson<FlowAssignWithBLOBs> selectFlowAssign(FlowAssignWithBLOBs flowAssignWithBLOBs);

    ToJson<FlowAssignWithBLOBs> checkAssign(HttpServletRequest request,Integer runId,Integer prcsId,Integer flowPrcs);
}
